package com.example.demo_quartz.bean;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * @author lzh
 * @date 2020/6/28 - 14:19
 */
public class HiJob extends QuartzJobBean {
    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("!!!!!");
        System.out.println("    Hi! :" + jobExecutionContext.getJobDetail().getKey());
    }
}
